package cn.itrip.auth.service;

import cn.itrip.beans.pojo.ItripUser;
import org.apache.ibatis.annotations.Param;

public interface UserService {
    /**
     * 创建邮箱注册用户
     * @param user
     * @throws Exception
     */
    public void itriptxCreateUser(ItripUser user) throws  Exception;
    public boolean activate(String mail,String code) throws Exception;
//    public ItripUser findUserByUserCode(String userCode) throws Exception;

    /**
     * 创建手机注册用户
     */
    public void itriptxCreateUserByPhone(ItripUser user) throws Exception;
    public boolean validatePhone(String phoneNumber,String code) throws Exception;
    public ItripUser findUserByUserCode(@Param("userCode")String userCode)throws Exception;
    /**
     * 登录
     */
    public ItripUser login(String userCode,String userPassword) throws Exception;
}
